//package com.anxin.elasticsearch.factory;
//
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
//import javax.validation.Payload;
//
//
//@Slf4j
//@Component
//public class RemoteElasticsearchFallbackFactory implements FallbackFactory<Payload>   {
//
//    @Override
//    public Payload create(Throwable throwable) {
//
//        log.error(throwable.getMessage());
//        Payload payload = new Payload(ResultConstant.ERROR.getCode(), "线索商机服务:" + ResultConstant.ERROR.getMsg());
//        return payload;
//    }
//}
